#include"commu.hpp"

int main()
{
    Shm shm(ROOT);
    NamedPipe np;
    np.Creat();
    np.OpenForRead();
    char* address = (char*)shm.Address();
    while(true)
    {
        if(np.Wait())
            printf("%s\n",address);
    }

    sleep(2);
    
    return 0;
}
